import type { RouteRecordRaw } from 'vue-router'

const router: RouteRecordRaw[] = [
  {
    path: '/admin/login',
    component: () => import('../views/admin/LoginView.vue'),
  },
  {
    path: '/admin/main',
    component: () => import('../views/admin/MainView.vue'),
    children: [
      {
        path: 'log',
        component: () => import('../views/admin/pages/LogView.vue'),
      },
      {
        path: 'welcome',
        component: () => import('../views/admin/pages/WelcomeView.vue'),
      },
      {
        path: 'report',
        component: () => import('../views/admin/pages/ReportView.vue'),
        children: [
          {
            path: 'message',
            component: () => import('../views/admin/pages/MessageReportView.vue'),
          },
          {
            path: 'report',
            component: () => import('../views/admin/pages/ReplyReport.vue'),
          },
        ],
      },
    ],
  },
]

export { router as adminRouter }
